﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmManualesPartesVehiculosSistemaModeloActualizar.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmManualesPartesVehiculosSistemaModeloActualizar" %>


<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxDataView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxClasses" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">



<script type="text/javascript">
    // <![CDATA[

    function ShowEliminar() {
        PopupMsjConfirmacion.Show();

    }


    // ]]> 
    </script>

    
    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }

                

                
               

</script>

  <div class="main-header" style="width:100%;">
                <div class="main-titulo">
                    Actualización de modelo</div>
               
            </div>

            <table>
            <tr>

            <td class="filas2">
                
            
                <dx:ASPxButton ID="btnAgregar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Text="Agregar" AutoPostBack="False">
                    <ClientSideEvents Click="function(s, e) {
	PopupAgregarImagen.Show();
}" />
                    <Paddings Padding="4px" />
                </dx:ASPxButton>
            
            
            </td>
            <td class="filas2">
            
            
                <dx:ASPxButton ID="btnSalir" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                    Width="87px" AutoPostBack="False" onclick="btnSalir_Click">
                    <Paddings Padding="4px" />
                </dx:ASPxButton>
            
            
            </td>
            <td>
            
             <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />  
            </td>
            </tr>
            
            </table>

            <div class="content-form">
            
            
            
                <dx:ASPxDataView ID="DVimagenes" runat="server" 
                    OnItemCommand="DVimagenes_ItemCommand" EnableCallBacks="False" 
                    CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                    ItemSpacing="23px" LoadingPanelImagePosition="Top" PagerPanelSpacing="0px" 
                    SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" 
                    Theme="Office2010Blue">
                <ItemTemplate>
            <table>
                <tr>
                    <td colspan="2">
                        <dx:ASPxImage ID="imgCover" runat="server" 
                            ImageUrl='<%# ConfigurationManager.AppSettings["RutaFotoModelo"]+"/"+ Eval("DES_IMAGEN") %>' Width="200px" 
                            Height="200px" />
                    </td>
                </tr>
                  <tr>
                    <td><b>Modelo:</b></td>
                    <td><dx:ASPxLabel ID="lblName" runat="server" Text='<%# Eval("DES_MODELO") %>' /></td>
                </tr>
                  <tr>
                    <td><b>Marca:</b></td>
                    <td><dx:ASPxLabel ID="ASPxLabel1" runat="server" Text='<%# Eval("DES_MARCA") %>' /></td>
                </tr>
                  <tr>
                    <td><b>Tipo rueda:</b></td>
                    <td><dx:ASPxLabel ID="ASPxLabel2" runat="server" Text='<%# Eval("TIP_NUM_RUEDA") %>' /></td>
                </tr>
                 
                <caption>
                    <br />
                    <asp:LinkButton ID="btnDelete" runat="server" 
                        CommandArgument='<%# Eval("ID_IMAGEN") %>' CommandName="Delete" 
                        Text="Eliminar item" />
                  
                </caption>
            
            </table>
        </ItemTemplate>
                 
                  <PagerSettings ShowNumericButtons="true">
            <AllButton Visible="False" />
            <Summary Visible="false" />
           
        </PagerSettings>



                    <LoadingPanelImage Url="~/App_Themes/Aqua/Web/Loading.gif">
                    </LoadingPanelImage>



                </dx:ASPxDataView>















<dx:ASPxPopupControl ID="PopupMsjConfirmacion" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupMsjConfirmacion" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
                
                    

                    <loadingpanelimage url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    

                    </loadingpanelimage>
                    

                    <HeaderStyle>

                    <paddings paddingleft="7px" />
                    

                    </HeaderStyle>
                    

                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    

                    <contentcollection>
                    
                    <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" 
                        SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                    <panelcollection>
                        <dx:PanelContent ID="PanelContent5" runat="server">
                        <table>
                        <tr>
                        <td colspan="3">
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¿Estas seguro de quitar esta foto ?</td>
                        
                        </tr>
                            <tr>
                                <td colspan="3">
                                   </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    </td>
                            </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                        
                           </td>
                        <td>
                        
                        
                            <dx:ASPxButton ID="btnPopAceptar" runat="server" AutoPostBack="False" 
                                ClientInstanceName="btnPopAceptar" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px" OnClick="btnPopAceptar_Click">
                                <clientsideevents click="function(s, e) {
	PopupMsjConfirmacion.Hide();
	e.processOnServer = true;
}" />
                            </dx:ASPxButton>
                        </td>

                        <td>
                            <dx:ASPxButton ID="btnPopCancelar" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar" 
                                Width="10px">
                                <clientsideevents click="function(s, e) {
	PopupMsjConfirmacion.Hide();
}" />
                            </dx:ASPxButton>
                          </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </panelcollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
                    
                    </contentcollection>
                    

                </dx:ASPxPopupControl>




               










               <dx:ASPxPopupControl ID="PopupAgregarImagen" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupAgregarImagen" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Agregar nueva foto" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="300px" EnableHotTrack="False">
                
                    

                    <loadingpanelimage url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    

                    </loadingpanelimage>
                    

                    <HeaderStyle>

                    <paddings paddingleft="7px" />
                    

                    </HeaderStyle>
                    

                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    

                    <contentcollection>
                    
                    <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" 
                        SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <panelcollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                       
                       



                       
                       
                       
                        <table>
                         <tr>
                         <td colspan="2" align="center">
                         

      <dx:ASPxPageControl ID="ASPxPageControl2" runat="server" ActiveTabIndex="0" SaveStateToCookies="True"
        TabAlign="Justify" TabPosition="Bottom" EnableCallBacks="True" ActivateTabPageAction="MouseOver"
        EnableHierarchyRecreation="True">
        <TabPages>
            <dx:TabPage Text="Foto">
                <ContentCollection>
                  
<dx:ContentControl runat="server" SupportsDisabledAttribute="True">
    





    <dx:ASPxImage ID="imagenModelo" runat="server" Height="260px" Width="300px">
    </dx:ASPxImage>








                    </dx:ContentControl>
                  
                </ContentCollection>
            </dx:TabPage>
          
        </TabPages>
        <TabStyle Width="100px">
        </TabStyle>
    </dx:ASPxPageControl>






                         
                         </td>

                         </tr>
                         <tr>
                         <td>
                         
                         
                             <dx:ASPxUploadControl ID="UploadControl" runat="server" Width="240px" 
                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                 CssPostfix="Office2010Blue" 
                                 SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
<ValidationSettings MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}"></ValidationSettings>
                             </dx:ASPxUploadControl>



                         
                         </td>
                         <td>
                         
                             <dx:ASPxButton ID="btnPopAgregar" runat="server" Text="Agregar" 
                                 CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                 CssPostfix="Office2010Blue" OnClick="btnPopAgregar_Click" 
                                 SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                 AutoPostBack="False" Height="23px">
                                 <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
}" />
                             </dx:ASPxButton>
                         
                         </td>

                         
                         </tr>
                         <tr>
                         <td>
                         
                         
                             <dx:ASPxLabel ID="lblMsj" runat="server" Text="">
                             </dx:ASPxLabel>
                         </td>
                         
                         </tr>

                        
                        </table>




                 </dx:PanelContent>
    </panelcollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
                    
                    </contentcollection>
                    

                </dx:ASPxPopupControl>


                <br />
                <br />
                <br />
                <br />
                <br />
             <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
            
            
            
            </div>
</asp:Content>
